package com.zjitc.backend_shop.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/*
    @author： 尤安托
    @date： 2025/3/11 17:57
*/
@Data
@Table(name = "vueshop_admin")
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "权限实体类")
public class Permission {
    @Id
    // 主键回填
    @KeySql(useGeneratedKeys = true)
    @Schema(description = "编号")
    private Integer id;
    @Schema(description = "权限")
    private String permission;
}
